package org.springside.examples.quickstart.service.account;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.Rollback;
import org.springframework.test.context.ContextConfiguration;
import org.springside.examples.quickstart.data.UserData;
import org.springside.examples.quickstart.entity.User;
import org.springside.modules.test.spring.SpringTransactionalTestCase;

@ContextConfiguration(locations = { "/applicationContext.xml" })
public class AccountServiceTest2 extends SpringTransactionalTestCase{
	@Autowired
	private AccountService accountService;
	
	@Test
	@Rollback(value=false)
	public void testSave(){
		User user=UserData.getUser();
		accountService.registerUser(user);
		System.out.println(">>>>>>>>>>>>>>>>>>>"+user.getLoginName()+">>>>"+user.getPassword());
	}
}
